package com.tsf.hbase.jpa;

import org.springframework.stereotype.Component;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 用户注解到hbase-dao实现类上
 *
 * @author taoningbo
 * @since 1.0, Created as 2018/11/26
 */
@Target({TYPE})
@Retention(RUNTIME)
@Documented
@Component
public @interface HBaseRepository {

    /**
     * The value may indicate a suggestion for a logical component name,
     * to be turned into a Spring bean in case of an autodetected component.
     * @return the suggested component name, if any
     */
    String name() default "";
}
